﻿if exists (select * from dbo.sysobjects where name = 'sp_tblImages_GetById')
	drop procedure [dbo].[sp_tblImages_GetById]
Go 
CREATE PROCEDURE dbo.sp_tblImages_GetById
@_imgid	int
AS
SELECT * FROM tblImages WHERE  _imgid= @_imgid
Go